package top.bulk.dbcrypto.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.bulk.dbcrypto.interceptor.BulkDecryptInterceptor;
import top.bulk.dbcrypto.interceptor.BulkEncryptInterceptor;

/**
 * Interceptor bean 配置
 *
 * @author 散装java
 * @date 2024-08-01
 */
@Configuration
public class MybatisConfig {

    @Bean
    public BulkDecryptInterceptor bulkDecryptInterceptor() {
        return new BulkDecryptInterceptor();
    }

    @Bean
    public BulkEncryptInterceptor bulkEncryptInterceptor() {
        return new BulkEncryptInterceptor();
    }
}
